<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="/res/third/bootstrap3/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="/res/common/js/jquery.1.9.1.min.js" type="text/javascript"></script>
<script src="/res/third/artDialog/jquery.artDialog.js" type="text/javascript"></script>
<script src="/res/third/validate/jquery.validate.js" type="text/javascript"></script>
<script src="/res/third/laytpl/template.js"></script>
<script src="/res/common/js/jquery.form.js"></script>
<script src="/res/third/easyUI/jquery.easyui.min.js" type="text/javascript"></script>
<script src="/res/third/easyUI/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
	<script type="text/javascript">
        function sosuo(){
            var lpath =location.pathname;
            var pageNo = 1;
            $("#soform").attr("action",lpath+"?pageNo="+pageNo);
            $("#soform").submit();
        }
	</script>
</head>
<body>
	<div class="panel panel-info panel-content">
		<div class="panel-heading">
			<form id="soform" method="post">
				<input type="hidden" name="companyId" value="${companyId!}">
				<table >
					<tr>
						<td class="w80" style="padding-top: 5px">
							<label class="center-block">类型：</label>
						</td>
						<td class="w150 ">
							<select class="form-control" name="levelType">
								<option value="">请选择</option>
								<option value="1" [#if levelType?? && levelType == 1]selected[/#if]>采购</option>
								<option value="2" [#if levelType?? && levelType == 2]selected[/#if]>供应</option>
							</select>
						</td>
						<td class="w80" style="padding-top: 5px">
							<label class="center-block">创建时间：</label>
						</td>
						<td class="w150 ">
							<input type="date" name="beginTime" value="[#if beginTime??]${beginTime?string("yyyy-MM-dd")!}[/#if]">
							~
							<input type="date" name="endTime" value="[#if endTime??]${endTime?string("yyyy-MM-dd")!}[/#if]">
						</td>
						<td style="padding-left: 10px">
							<div class="input-group">
								<span class="input-group-btn">
									<button class="btn btn-default" type="button" onclick="sosuo()">搜索</button>
								</span>
							</div>
						</td>
					</tr>
				</table>
			</form>
		</div>
		<div class="panel-heading">
		</div>
		<table class="table table-hover table-bordered table-striped table-condensed">
			<tr>
				<th>#</th>
				<th>类型</th>
				<th>变更值</th>
				<th>变更后的值</th>
				<th>变更原因</th>
				<th>创建时间</th>
			</tr>
			[#list pagination.list as item]
			<tr>
				<td align="center">${pagination.pageSize * (pagination.pageNo-1)+item_index+1}</td>
				<td align="center">[#if (item.levelType!0) == 1]采购[#else]供应[/#if]</td>
				<td align="center">${item.type! * item.changeValue!}</td>
				<td align="center">${item.afterValue!}</td>
				<td align="center">${item.changeReason!}</td>
				<td align="center">${item.createtime?string("yyyy-MM-dd HH:mm:ss")!}</td>
			</tr>
			[/#list]
		</table>
		<div class="panel-footer">[@fenye p = pagination form = 'infoForm' /]</div>
	</div>
</body>
</html>
